#include <fstream>
#include <iostream>
#include "config.h"

using namespace std;

Error Config::startup(const string& cfgFilename)
{
    ifstream cfgFile;
    cfgFile.open(cfgFilename.c_str(), ios::in);

    if(cfgFile.is_open())
    {
        #ifdef _DEBUG
        cout<<"config file is open\n";
        #endif
        cfgFile.close();
    }
    else
    {
        cerr<<"Unable to open configuration file "<<cfgFilename<<"\n";
        return kFileOpenFailure;
    }
    return kSuccess;
}
